<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="menu_bg">
	<div class="menu">
    	<!--Begin 商品分类详情 Begin-->    
    	<div class="nav">
        	<div class="nav_t">全部商品分类</div>
            <div class="leftNav">
                <ul>      
                   <c:forEach items="${sessionScope.category}" var="ory1">
    					<c:if test="${ory1.type == 1 }">
    					<li>
                    	<div class="fj">
                        	<span class="n_img"><span></span><img src="images/nav1.png" /></span>
                            <span class="fl">${ory1.name} <span>
                        </div>
                       
                        <div class="zj">
                            <div class="zj_l">
                           <c:forEach items="${category}" var="ory2">
    							<c:if test="${ory2.type == 2  and  ory2.parentId == ory1.id}">
                                <div class="zj_l_c">
                                    <h2>${ory2.name}</h2>
                           	<c:forEach items="${category}" var="ory3">
    							<c:if test="${ory3.type == 3  and  ory3.parentId == ory2.id}">
                                    <a href="CategoryList?id=${ory1.id}&type=${ory1.type}">${ory3.name}</a> &nbsp;&nbsp;
                               </c:if>
    						</c:forEach> 
                                </div>
                              </c:if>
    					</c:forEach> 
                            </div>
                            <div class="zj_r">
                                <a href="#"><img src="images/n_img1.jpg" width="236" height="200" /></a>
                                <a href="#"><img src="images/n_img2.jpg" width="236" height="200" /></a>
                            </div>
                        </div>
                        </li>
                   
                    </c:if>
    			</c:forEach>
    			 </ul> 
              </div>
            </div>
             <!--End 商品分类详情 End-->                                                     
    	<ul class="menu_r">                                                                                                                                               
        	<li><a href="Index.jsp">首页</a></li>
        <c:forEach items="${category}" var="ory">
    		<c:if test="${ory.type == 1 }">
            <li><a href="CategoryList?id=${ory.id}&type=${ory.type}&currpage=1&action=list">${ory.name}</a></li>
            
            </c:if>
    	</c:forEach> 
        </ul>
       <div class="m_ad">中秋送好礼！</div>
       </div>  
       
    </div>
</body>
</html>